<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<!DOCTYPE html>
<html lang="zh-CN">
	<head>
		<meta charset="utf-8">
		<meta http-equiv="X-UA-Compatible" content="IE=edge">
		<meta name="viewport" content="width=device-width, initial-scale=1">
		<!-- 上述3个meta标签*必须*放在最前面，任何其他内容都*必须*跟随其后！ -->
		<meta name="description" content="">
		<meta name="author" content="">
		<link href="favicon.ico" rel="shortcut icon" type="image/x-icon">
		<title>TyEnWord 邮箱验证</title>
		<!-- Bootstrap core CSS -->
		<link href="http://cdn.bootcss.com/bootstrap/3.3.4/css/bootstrap.min.css" rel="stylesheet">
		<!-- Custom styles -->
		<link href="css/signupin.css" rel="stylesheet">
		<!-- JavaScript -->
		<script src="http://cdn.bootcss.com/jquery/1.11.2/jquery.min.js"></script>
		<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
		<!--[if lt IE 9]>
      <script src="http://cdn.bootcss.com/html5shiv/3.7.2/html5shiv.min.js"></script>
      <script src="http://cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
	</head>
	<body>
		<div class="container">
			<div class="col-md-12">
				<div class="panel panel-default">
					<div class="panel-body" style="height: 500px; padding: 30px;" >
						<div class="page-header">
							<h1><strong>电子邮箱验证</strong></h1>
						</div>
<s:if test="result==null or result=='' or result=='error'">
						<h3>呃，似乎出了些问题，我们无法验证您的电子邮件。请重试一次！</h3>
</s:if>
<s:else>
	<s:if test="result=='success'">
						<h3 class="text-success">邮箱验证成功！</h3>
	</s:if>
	<s:elseif test="result=='overdue'">
						<h3 class="text-danger">邮箱验证已过期，请登陆后，重新发送邮件！</h3>
	</s:elseif>
						<p><span id="num"  class="text-primary">5</span>秒后，将跳转到<a href="login" class="text-primary">登陆页面</a>...</p>
						<script type="text/javascript">
							function jump()
							{
								var numElem = $("#num");
								var number = parseInt(numElem.text());
								number--;
								numElem.text(number);
								if (number > 0)
									setTimeout("jump()", 1000);
								else
									location.href = "login";
							}
							$(function(){
								setTimeout("jump()", 1000);
							});
						</script>
</s:else>
					</div>
					<div class="panel-footer text-center">
						<br />
						<p>CREATE BY <a href="http://www.tianyiyan.com">TIANYIYAN</a></p>
						<br />
					</div>
				</div>
			</div>
		</div>
		<!-- /container -->
	</body>
</html>